package cn.snorlaxzjt.LBSserver.common;

import cn.hutool.cache.Cache;
import cn.hutool.cache.impl.TimedCache;
import javax.mail.*;
import javax.mail.internet.InternetAddress;
import javax.mail.internet.MimeMessage;
import java.io.UnsupportedEncodingException;
import java.security.GeneralSecurityException;
import java.util.HashMap;
import java.util.Map;
import java.util.Properties;

public class EmailConfig
{

    public final static String Sender="2494846511@qq.com";
    public final static String password="hjgkrugdavqlebfg";
    public static Cache<String,String> cache = new TimedCache<>(300000);

    public static String RandomSix()
    {
        return String.valueOf((int)((Math.random()*9+1)*100000));
    }

    public static void main(String[] a)
    {
        for(int i=0;i<20;i++)
        {
        System.out.println(RandomSix());
        }
    }

}
